/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ThreadClient;

import Images.TImages;
import StaticClass.ArrSocket;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Oho
 */
public class ConnectImages extends Thread{
   int port ;
    public ConnectImages(int port)
   {
       this.port = port ;
   }
    @Override
    public void run()
    {
        try {
            Socket sk = new Socket(ArrSocket.HOSTNAME, port);
            new TImages(sk).start();
        } catch (UnknownHostException ex) {
            Logger.getLogger(ConnectImages.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(ConnectImages.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    
}
